﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;

namespace ZX.OA.BLL
{
    public class ProjectInfoBll
    {

        ProjectInfoDal dal = new ProjectInfoDal();
        /// <summary>
        /// 项目的信息显示
        /// </summary>
        /// <returns></returns>
        public List<ProjectInfo> GetProject()
        {
            return dal.GetProject();
        }
        /// <summary>
        /// 项目的类型信息显示
        /// </summary>
        /// <returns></returns>
        public List<ProjectTypeInfo> Drop_ProjectType()
        {
            return dal.Drop_ProjectType();
        }
        /// <summary>
        /// 项目状态的信息显示
        /// </summary>
        /// <returns></returns>
        public List<ProjectStateInfo> Drop_ProjectState()
        {
            return dal.Drop_ProjectState();
        }
        /// <summary>
        /// 添加项目
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public int ProjectInfoAdd(ProjectInfo t)
        {
            return dal.ProjectInfoAdd(t);
        }
        /// <summary>
        /// 项目删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleProject(int id)
        {
            return dal.DeleProject(id);
        }
        /// <summary>
        /// 根据项目编号获取办公用品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ProjectInfo GetProjectId(int id)
        {
            return dal.GetProjectId(id);
        }
        /// <summary>
        /// 修改项目信息
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public int ProjectUpdate(StationeryInfo s)
        {
            return dal.ProjectUpdate(s);
        }
        /// <summary>
        /// 根据项目编号或项目名称查询项目信息
        /// </summary>
        /// <param name="ProjectName"></param>
        /// <param name="ProjectId"></param>
        /// <returns></returns>
        //public List<ProjectInfo> SrachProject(string ProjectName, int? ProjectId)
        //{
        //    return dal.SrachProject(ProjectName, ProjectId);
        //}
    }
}
